<%@ page contentType="text/html;charset=gbk" %>
<%@ page import="java.sql.*"%>
<%@ page import="com.oa.database.*"%>
<%@ page import="com.oa.util.*"%>
<%
	String id_doc = request.getParameter("id_doc");
	String content = "";

	DataConn dataConn = new DataConn();
	QueryData queryData = new QueryData(dataConn);
	queryData.setMultRecordSet("OA_GSFB", "FBNR", "FBGW="+id_doc+" and FBZS=3");

	ResultSet rs = queryData.getResultSet();
	try {
		if (rs.next()) {
			content = rs.getString("FBNR");
			out.println(content);
		}
	}
	catch(Exception e) {}

%>
<%
	try {
		if (dataConn != null) {
			dataConn.close();
		}
	}
	catch(Exception e) {}
%>
<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=wb name=wb width=0></OBJECT>
<script language="JavaScript">
	wb.execwb(6,6);
	close();
</script>
